import scala.io.StdIn
import scala.util.control.Breaks._

object exercise002 {
  def main(args: Array[String]): Unit = {
//    def sum1(a: Int, b: Int): Int = a + b
//    lazy val su = sum1(100, 20)
//    println(su)
//
    def fun1(a : Int ): Int= if (a==1) 1 else a * fun1(a-1)

    println(fun1(4))



  }
}


